<script type="text/javascript">
	$(document).ready(function() {
		deleteRecord();
		disappearingContent10000( ".after-delete-info" );
		showAllCheckAll();
		addNewFields();
        sendParameter();
	});
</script>
<?php $colspan = ' colspan="8" '; ?>

<div class="after-delete-info"><?php echo $this->delete; ?></div>

<p class="title">
	Rok akademicki
	<a href="<?php echo $this->url(array('controller'=>'year','action'=>'add', 'module'=>'technical'));?>">
		<input type="button" name="button" value="Dodaj nowy" />
	</a> 
</p><!-- title -->

<form method="post" class="sorround-table" action="<?php echo $this->url(array('controller'=>'year','action'=>'mass', 'module'=>'technical')); ?>">
	

	<div  class="showAll">
	<table>
		<thead>
			<tr>
				<th <?php echo $colspan; ?>>
					<select name="massAction">
						<option value="">Masowe działania</option>
						<option value="deleteAll">usuń</option>
					</select><!-- #massAction -->
					<input type="submit" name="submitMassAction" value="Zastosuj" />
				</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<th <?php echo $colspan; ?>>
					<select name="massAction">
						<option value="">Masowe działania</option>
						<option value="deleteAll">usuń</option>
					</select><!-- #massAction -->
					<input type="submit" name="submitMassAction" value="Zastosuj" />
				</th>
			</tr>
		</tfoot>
		<tbody>
			<tr>
				<th class="checkbox"><input type="checkbox" class="all" name="checkedAll" value="0" /></th>
				<th>Stopień studiów</th>
				<th>Wydział</th>
				<th>Kierunek</th>
				<th>Liczba studentów na roku</th>
				<th>Liczba grup laboratoryjnych</th>
				<th>Liczebność grupy</th>
				<th>Rodzaj studiów</th>
			</tr>
		<?php if( isset($this->empty) ) { ?>
			<tr><td <?php echo $colspan; ?>><?php echo $this->empty; ?></td></tr>
		<?php } ?>
		<?php foreach($this->years as $year) : ?>
			<tr>
				<td class="checkbox"><input type="checkbox" name="yearID"
					value="<?php echo $year['id']; ?>" /></td>
				<td><a href="<?php echo $this->url(array('controller'=>'year','action'=>'edit', 'id'=>$year['id'], 'module'=>'technical'));?>">
					<?php echo $year['degreeStudy_designation']; ?> </a>
					<p class="sub-menu">
						<a href="<?php echo $this->url(array('controller'=>'year','action'=>'edit', 'id'=>$year['id'], 'module'=>'technical'));?>">
						 	Edytuj 
						 </a>
					  |  <a href="<?php echo $this->url(array('controller'=>'year','action'=>'delete', 'id'=>$year['id'], 'name'=>$year['major_designation'], 'jsflag' => 'false', 'module'=>'technical'));?>" class="delete"> 
					 		Usuń 
					 	 </a>
					</p>
				</td>
				<td>
					<a href="<?php echo $this->url(array('controller'=>'faculty','action'=>'index', 'module'=>'technical'));?>">
							<?php echo $year['faculty_designation']; ?>
					</a>
				</td>
				<td>
					<a href="<?php echo $this->url(array('controller'=>'major','action'=>'index', 'module'=>'technical'));?>">
							<?php echo $year['major_designation']; ?>
					</a>
				</td>
				<td><?php echo $year['numberStudentYear']; ?></td>
				<td><?php echo $year['numberGroupLecture']; ?></td>
				<td><?php echo $year['abundanceGroup']; ?></td>
				<td>
					<a href="<?php echo $this->url(array('controller'=>'typestudy','action'=>'index', 'module'=>'technical'));?>">
							<?php echo $year['typeStudy_designation']; ?>
					</a>
				</td>
			</tr>
		<?php endforeach; ?>	
			<tr>
				<th class="checkbox"><input type="checkbox"  class="all" name="checkedAll" value="0" /></th>
				<th>Stopień studiów</th>
				<th>Wydział</th>
				<th>Kierunek</th>
				<th>Liczba studentów na roku</th>
				<th>Liczba grup laboratoryjnych</th>
				<th>Liczebność grupy</th>
				<th>Rodzaj studiów</th>
			</tr>
		</tbody>		
	</table>
	</div> <!-- #showAll -->
	
</form><!-- #sorround-table -->


<pre>
<?php ?>
</pre>
	
	